<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:18:23 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>{$title}</title>
    <meta name="keywords" content="{$title}">
    <meta name="description" content="{$title}">

    <link rel="shortcut icon" href="/static/index/images/favicon.ico" />
    <link href="{$host}/static/public/js/h+/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="{$host}/static/public/js/h+/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <link href="{$host}/static/public/js/h+/css/animate.min.css" rel="stylesheet">
    <link href="{$host}/static/public/js/h+/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>if(window.top !== window.self){ window.top.location = window.location;}</script>
</head>

<body class="gray-bg">

    <div class="middle-box text-center loginscreen  animated fadeInDown" style="width: auto;margin-top:100px;">
        <div>
            <div>
                <h2 class="logo-name" style="font-size:50px;letter-spacing:10px;">{$title}</h2>
            </div>

            <form class="m-t" role="form" action="">
                <div class="form-group">
                    <input type="text" class="form-control" id="username" placeholder="用户名" required="">
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" id="password" placeholder="密码" required="">
                </div>
                <p id="message" style="color:#ed5565;"></p>
                <button type="button" class="btn btn-primary block full-width m-b">登 录</button>


                <!--  <p class="text-muted text-center"> <a href="login.html#"><small>忘记密码了？</small></a> | <a href="register.html">注册一个新账号</a>
                </p>
 -->
            </form>
        </div>
    </div>
    <script src="{$host}/static/public/js/h+/js/jquery.min.js?v=2.1.4"></script>
    <script src="{$host}/static/public/js/h+/js/bootstrap.min.js?v=3.3.6"></script>
</body>
<!-- Mirrored from www.zi-han.net/theme/hplus/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:18:23 GMT -->
</html>

<script>
	$(function(){
		
		var submit = function(){
			var data = {
					username : $('#username').val(),
					password : $('#password').val()
			}
			if(!data.username || !data.password){
				$('#message').text('请输入用户名和密码');return;
			}
			$('button').text('登录中...');
			$.post('{$host}/admin/login/index' , data , function(rel){
				$('button').text('登录');
				if(rel.errCode){
					$('#message').text(rel.message);
				}else{
					window.location.href='{$host}/admin/index';
				}
			})
		}
		$('button').click(function(){
			submit();
		})
		$('form').bind('keydown' , function(e){
			if(e.keyCode == 13){
				submit();
			}
		})
	})

</script>
